package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FdStudentMapper;
import com.ruoyi.system.domain.FdStudent;
import com.ruoyi.system.service.IFdStudentService;

/**
 * FDService业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-22
 */
@Service
public class FdStudentServiceImpl implements IFdStudentService 
{
    @Autowired
    private FdStudentMapper fdStudentMapper;

    /**
     * 查询FD
     * 
     * @param id FDID
     * @return FD
     */
    @Override
    public FdStudent selectFdStudentById(Long id)
    {
        return fdStudentMapper.selectFdStudentById(id);
    }

    /**
     * 查询FD列表
     * 
     * @param fdStudent FD
     * @return FD
     */
    @Override
    public List<FdStudent> selectFdStudentList(FdStudent fdStudent)
    {
        return fdStudentMapper.selectFdStudentList(fdStudent);
    }

    /**
     * 新增FD
     * 
     * @param fdStudent FD
     * @return 结果
     */
    @Override
    public int insertFdStudent(FdStudent fdStudent)
    {
        return fdStudentMapper.insertFdStudent(fdStudent);
    }

    /**
     * 修改FD
     * 
     * @param fdStudent FD
     * @return 结果
     */
    @Override
    public int updateFdStudent(FdStudent fdStudent)
    {
        return fdStudentMapper.updateFdStudent(fdStudent);
    }

    /**
     * 批量删除FD
     * 
     * @param ids 需要删除的FDID
     * @return 结果
     */
    @Override
    public int deleteFdStudentByIds(Long[] ids)
    {
        return fdStudentMapper.deleteFdStudentByIds(ids);
    }

    /**
     * 删除FD信息
     * 
     * @param id FDID
     * @return 结果
     */
    @Override
    public int deleteFdStudentById(Long id)
    {
        return fdStudentMapper.deleteFdStudentById(id);
    }
}
